<script setup>
import Title from '@/components/Home/title.vue'
import Menu from '@/components/common/menu.vue'
import homeMenu from '@/utils/Home/homeMenu'
import { RouterView } from 'vue-router'
</script>

<template>
  <div class="wrapper">
    <Title></Title>
    <div class="content">
      <Menu :menu="homeMenu"></Menu>
      <div class="main">
        <RouterView class="router-view"></RouterView>
      </div>
    </div>
  </div>
</template>

<style lang="scss" scoped>
.wrapper {
  position: relative;
  width: 100vw;
  height: 100vh;
  background-color: #fff;
  .content {
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: calc(100vh - 50px);
    display: flex;
    // align-items: center;
    .main {
      display: flex;
      align-items: flex-start;
      width: calc(100vw - 240px);
      height: calc(100vh - 50px);
      overflow: hidden;
      .router-view{
        flex: 1;
        display: flex;
      }
    }
  }
}
</style>
